package com.kkyy.msystem.feign;

import com.kkyy.msystem.entity.MyMusicEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("kkyy-mymusic")
public interface FeignService2 {
    @RequestMapping("/mymusic/myCollection2")
    List<MyMusicEntity> myCollection2(@RequestParam("userId") Integer userId);

    @RequestMapping("/mymusic/usersdelete")
    void usersdelete(@RequestParam("id") String id);

    // 收藏删除(后台)
    @RequestMapping("/mymusic/mymusicdel")
    void mymusicdel(@RequestParam("id") Integer id);

    // 前端注册插入
    @RequestMapping("/mymusic/insertUsers")
    void insertUsers(@RequestParam("username") String username, @RequestParam("password") String password);
}